#include "shell.h"
extern void Queue_Demo();
extern void Mutex_Demo();
extern void Sem_Demo();
UINT32 Shell_Cmd_Queue(UINT32 argc, const CHAR **argv)
{
    (void)argc;
    (void)argv;
    printf("This is queue demo launch command.\n");
    Queue_Demo();

    return 0;
}

UINT32 Shell_Cmd_Mutex(UINT32 argc, const CHAR **argv)
{
    (void)argc;
    (void)argv;
    printf("This is mutex demo launch command.\n");
    Mutex_Demo();

    return 0;
}

UINT32 Shell_Cmd_Semaphore(UINT32 argc, const CHAR **argv)
{
    (void)argc;
    (void)argv;
    printf("This is sem demo launch command.\n");
    Sem_Demo();

    return 0;
}

int cmd_test(void)
{
    printf("2022110106陈奕铿");
    return 0;
}

void regMyShellCmd(void)
{
    osCmdReg(CMD_TYPE_STD,"queue_demo",0,Shell_Cmd_Queue);
    osCmdReg(CMD_TYPE_STD,"mutex_demo",0,Shell_Cmd_Mutex);
    osCmdReg(CMD_TYPE_STD,"sem_demo",0,Shell_Cmd_Semaphore);
    osCmdReg(CMD_TYPE_STD,"name",0,cmd_test);
}
